<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

    // 接口配置
    
    'api/v1/secure' => 'api/v1.secure/secure',

    'api/v1/user' => 'api/v1.account/getUserForCloudDisk',
    
    'api/v1/code' => 'api/v1.account/code',
    'api/v1/register' => 'api/v1.account/register',
    'api/v1/login' => 'api/v1.account/login',
    'api/v1/setInfo' => 'api/v1.account/setInfo',
    
    'api/v1/device/bind' => 'api/v1.device/bind',
    'api/v1/device/checkIMEI' => 'api/v1.device/checkIMEI',
    'api/v1/device/unbind' => 'api/v1.device/unbind',
    'api/v1/device/list' => 'api/v1.device/listx',
    'api/v1/device/gps' => 'api/v1.device/gps',
    'api/v1/device/orbit' => 'api/v1.device/orbit',
    'api/v1/device/cloud' => 'api/v1.device/cloud',
    'api/v1/device/record' => 'api/v1.device/record',
    'api/v1/device/warning' => 'api/v1.device/warning',
    'api/v1/device/penJpush' => 'api/v1.device/checkPenAndJpush',

    'api/v1/device/file' => 'api/v1.device/fileListx',
    // 'api/v1/device/fileOperate' => 'api/v1.device/fileOperatex',
    
    'api/v1/pen/set' => 'api/v1.pen/setx',
    'api/v1/pen/get' => 'api/v1.pen/getx',
    
    // 'api/v1/car/image' => 'api/v1.car/setImage',

    'api/v1/task/list' => 'api/v1.task/listx',
    'api/v1/task/read' => 'api/v1.task/readTag',
    'api/v1/task/partake' => 'api/v1.task/partake',
    'api/v1/task/submit' => 'api/v1.task/submitTask',
    'api/v1/task/reward' => 'api/v1.task/getRewardData',
    'api/v1/task/pickup' => 'api/v1.task/pickupReward',
    'api/v1/task/cancel' => 'api/v1.task/cancelTask',

    // 'api/v1/system/app' => 'api/v1.system/app',
    'api/v1/system/app' => 'api/v1.doc_manage/app',// 新，key->value形式，非数组。

    // 文档页面地址
    'api/v1/doc' => 'api/v1.doc_manage/index',

    'api/v1/feedback/list' => 'api/v1.feedback/index',
    'api/v1/feedback/commit' => 'api/v1.feedback/commit',


    // ************************************
    // ************************************
    // 后台路由配置

    //'index' => 'admin/index/index',
    'account' => 'admin/account/index',
    'accountgroup' => 'admin/account_group/index',

    'agent' => 'admin/agent/index',
    'agentgroup' => 'admin/agent_group/index',
    'agentlevel' => 'admin/agent_level/index',
    'agentreport' => 'admin/agent_report/index',

    'device' => 'admin/device/index',
    'devicegroup' => 'admin/device_group/index',

    '4gtrafficmanager' => 'admin/traffic_manager/index',

    'videolibrary' => 'admin/video_library/index',

    'cardata' => 'admin/car_data/index',
    'carevent' => 'admin/car_event/index',
    'carmanage' => 'admin/car_manage/index',
    
    'task' => 'admin/task/index',
    'receipt' => 'admin/receipt/index',

    'sn' => 'admin/sn/index',
    'workorder' => 'admin/work_order/index',

    'sysinstall' => 'admin/sys_install/index',
    'adminmanage' => 'admin/admin_manage/index',
    'admingroup' => 'admin/admin_group/index',
    'docmanage' => 'admin/doc_manage/index',
    'imagelibrary' => 'admin/image_library/index',
    'feedback' => 'admin/feedback/index',
    'faultrepair' => 'admin/fault_repair/index',

    // 静态资源 assets
    // 'assets' => 'admin/assets/index'
];
